package com.ys.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.common.utils.PageUtils;
import com.ys.gulimall.product.entity.BrandEntity;
import com.ys.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author yeswater
 * @email ruobairuo@gmail.com
 * @date 2021-07-16 16:28:06
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);
	
	/**
	 * 保存详细信息
	 */
	void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);
	
	void updateBrand(Long brandId, String name);
	
	void updateCategory(Long catId, String name);
	
	List<BrandEntity> getBrandsByCatId(Long catId);
}

